import Vue from 'vue';
import Router from 'vue-router';
import CategoryManagement from '@/views/CategoryManagement.vue';
import DishInfoManagement from '@/views/DishInfoManagement.vue';
import DishStatusManagement from '@/views/DishStatusManagement.vue';


Vue.use(Router);

export default new Router({
    routes: [
        {
            path: '/',
            redirect: '/categories',
        },
        {
            path: '/categories',
            name: 'CategoryManagement',
            component: CategoryManagement,
        },
        {
            path: '/dish-info',
            name: 'DishInfoManagement',
            component: DishInfoManagement,
        },
        {
            path: '/dish-status',
            name: 'DishStatusManagement',
            component: DishStatusManagement,
        },
        // 其他路由...
    ],
});